package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.GoodsProduct;
import com.ecoolex.chinadutyfree.retailer.entity.GoodsProductExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface GoodsProductMapper {
    long countByExample(GoodsProductExample example);

    int deleteByExample(GoodsProductExample example);

    int deleteByPrimaryKey(Integer productId);

    int insert(GoodsProduct record);

    int insertSelective(@Param("record") GoodsProduct record, @Param("selective") GoodsProduct.Column ... selective);

    GoodsProduct selectOneByExample(GoodsProductExample example);

    List<GoodsProduct> selectByExample(GoodsProductExample example);

    GoodsProduct selectByPrimaryKey(Integer productId);

    GoodsProduct selectByPrimaryKeyWithLogicalDelete(@Param("productId") Integer productId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") GoodsProduct record, @Param("example") GoodsProductExample example, @Param("selective") GoodsProduct.Column ... selective);

    int updateByExample(@Param("record") GoodsProduct record, @Param("example") GoodsProductExample example);

    int updateByPrimaryKeySelective(@Param("record") GoodsProduct record, @Param("selective") GoodsProduct.Column ... selective);

    int updateByPrimaryKey(GoodsProduct record);

    int batchInsert(@Param("list") List<GoodsProduct> list);

    int batchInsertSelective(@Param("list") List<GoodsProduct> list, @Param("selective") GoodsProduct.Column ... selective);

    int logicalDeleteByExample(@Param("example") GoodsProductExample example);

    int logicalDeleteByPrimaryKey(Integer productId);
}